Are y’alls problem similar to this: MCL-25509
If so, then rm ~/.minecraft/webcache2/Default/Preferences is a worst-case fix; at least for Linux. There might be an equivalent in Windows. I don’t own a copy of Windows to test with.
Be sure to mention what OS version and/or distro you are running.
This still works as a fix, but it is still a bug.
I’m running the KDE neon distro of Linux.
I use prism when using mods; including forge. Prism appears to “self correct” for whatever problem is causing this.