When changing app from user only to Admin, App hangs on startup

I had an App installed on an Android 10 phone using a Generated user code.
Then I changed the App to an Admin App with the Android ID installed in the Device specific Access section.
Now, even after uninstalling and rebooting the phone, both the Admin App and the original app hang on startup like this: