Make a fresh install in that new location - and there's no need to disable OneDrive, it's a good feature - just not the right place to put games.
Also make sure you're using the right java:
Some modpacks require older versions of Java 8 or 11. Open
https://adoptium.net/temurin/archive/ in your browser and select either OpenJDK 8 or OpenJDK 11. You can install those exact versions from the archive: MC 1.16.5 or less => jdk8u312-b07 from 21st of October 2021. MC 1.16.5 for performance => jdk-11.0.13+8 from 21st of October 2021.
Servers: uninstall all other versions of Java
If you still have issues, post new log and use
https://paste.feed-the-beast.com and share the link to the log here.