How do you try to open it? Are you talking about the OneDrive explorer folder, or about OneDrive App or about opening OneDrive in the web browser? All can be pinned on different places.
If you would have Windows 11 22H2, then such a problem would be possible to have this problem on some computers, but on Windows 10, the problem can only occur with a damaged Windows or a non-genuine OneDrive installation if there was an automatic update that can't install completely by somereasons. In any case, it's worth checking the health of your Windows, cleaning junk if it hasn't been done for a long time and, if necessary, reinstalling faulty programs or a faulty OS. Before that, it is wise to reinstall OneDrive, of course, this can only help if everything else is fine and working without problems. In any case, this is not a general problem, but a local problem and can only be solved by eliminating the cause of the problem.
The fix in this thread: https://forums.mydigitallife.net/th...k-under-both-ltsc-and-iot.87553/#post-1809940