Failed to import custom UActorComponent

Hi guys. There are many questions like this one but none helped me solve my problem.
Basically I have a custom UActorComponent called ULocationInterpolatorComponent. I also have an Actor called AMovingObstacle. This obstacle has a ULocationInterpolatorComponent attached to it. Everything works fine, the logic isn’t broken. However when I restart the editor, the obstacles that are placed in the level throw an error:

Here is the error:

But everything works fine, the level is not broken. All of the obstacles work as expected, even if any settings have been changed. Everything is serialized as expected.
If I however delete the obstacles from the level, I no longer get this error.
Why do I even get this error?

Here is the obstacle header:

And the source:

Here is how the hierarchy of the MovingObstacle blueprint looks like:

Ok guys I fixed it somehow.
I added UCLASS(ClassGroup = Custom, meta = (BlueprintSpawnableComponent)) specifiers and the problem is gone. However, I am not sure because I then removed the specifiers and the error is gone.