Thank you for your post!
I found some 3rd party documentation that might help with resolving your issue, which I'll post below. However, since this seems like it's more related to OneDrive, I've added the "office-onedrive-client-itpro" tag to this thread so their community can take a look at this issue too.
OneDrive - Silently configure user accounts
OneDrive for Business authentication and sign in
OneDrive for Business Auto Sign In – Windows 10
OneDrive client auto sign in
If you'd like, you can also try reaching out to our OneDrive for Business experts using the forums below.
OneDrive for Business
Microsoft 365 and Office
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.