This was a very similar problem to Alembic's #77754 where a background import can cause issues with Undo in some circumstances. Mirror what was done for the Alembic fix here now too. Pull Request: https://projects.blender.org/blender/blender/pulls/126539