All you need in order to instantiate the AppearanceAssetEditScope is the document, isn't it?
I don't see where the problem is.
Ah, looking further, I see the generic EditScope base class, and some derived classes:
https://www.revitapidocs.com/2019/bac11282-3a3b-953e-8bc4-960c62da4946.htm
Do you mean the error message is saying that an edit scope is required for lights, and there is no such thing available?
Can you please submit a minimal reproducible case so we can see what your steps are and what might be wrong?
https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b
Then I can share that with the development team for further analysis if required.
Thank you!