hi ,
Verify that the accounts xyz@workemail.com and abc@workemail.com have the proper access and permissions within Azure AD. Make sure that there are no restrictions or policies preventing multiple users from logging in on the same device.
Navigate to Settings > Accounts > Access school or work. Verify the presence of both users and their correct sign-in. If not, attempt to take the second user out and add them back.
Rebooting the device could sometimes fix login problems. See if it helps to log in with the second user after restarting the computer.
some links that can be helpful :
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.