Its always a possibility with OneDrive. File Explorer is being linked to files on the internet and listing/syncing them. Anything that is linked that way can see performance problems and a number of other possible issues. With how spaghetti'd Windows is, Windows 10, 11, or whatever will all see problems with that at times. It is the catch 22.
Any networking issues, internet issues, bumps, server issues, driver issues, DNS issues, etc can cause delays or other sporadic issues here. Any delay at all could cause an issue. Its even worse if the code has a threading issue and goes into non-responding, fully waits, or other issue with it, possibly causing missing files also until it fully loaded, crashes, or other.
If you want OneDrive then you must have that. Things are tied together in a way its inevitable.