it’s accessing an object that gets cleaned during the level transition.
a patch is checking if the object “isValid” inside that function.
another is to stop that function, and restart after level change. which seems to be happening on tick or on timer.
a cleaner approach will not be keeping an ui that persists across level.
to persist data across level you might want to consider the game instance.