I am trying to get an autoload to load using add_autoload_singleton
and then I want to make some connections to it. The issue is that the script throws errors if I call the autoload because it's not recognized until its been globally registered. Unfortunately it will never be registered because of the errors. See below:

This prevents the plugin from being enabled when the project is loaded/reloaded. If I comment out any reference to the autoload then it will register the autoload and I can then uncomment them. This seems a bit ridiculous to have to do.
What's the work around or correct way to using add_autoload_singleton
and be able to reference it in the same script?