Hi,
Thank you for posting your query. According to your description above, here are some suggestions and an official link you man refer to.
The logon process hangs at the "Welcome" screen or the "Please wait for the User Profile Service" error message window
https://support.microsoft.com/en-us/topic/the-logon-process-hangs-at-the-welcome-screen-or-the-please-wait-for-the-user-profile-service-error-message-window-d2b47c4e-8819-a38c-7b37-ff0a79927035
Hope above information can help you.
Best Regards,
Grace
---If the suggestions above are helpful, please ACCEPT ANSWER. Really appreciate. This will also help others with similar issue to find this post quickly. ---