That could be because of compatibility issues with the new operating system. It's also worth mentioning that using the Microsoft Store version of Minecraft Java might be causing some complications too. Have you tried installing Forge from the Mojang website instead of the Microsoft Store? Also, just to clarify, are you using a Windows 10 key on your new computer? UPD: sorry, didn't notice the thread was old. Did you manage to solve that?