Solution:
1.O365 admin center--users---active users---select the user--OneDrive---create a link to files---click the link, then you can access the user's OneDrive.
2. Please click the Settings in OneDrive---OneDrive settings--more settings---site collection administrator---please re-add the account here.
Watch video OneDrive access Issue user not in directory Microsoft O365 2022 online without registration, duration hours minute second in high quality. This video was added by user Microsoft & beyond 15 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,054 once and liked it 11 people.