Seems like you have a corrupt install of something given that it is missing a file.
Run devenv.exe -log '<pathtotemp>\vslog.xml'
. When VS crashes then go to the log file and take a look at it.
Given that it impacted both VS 2019 and VS 2022 my guess is it is a corrupt common component like .NET Framework, VC++ runtime or something. You could try repairing the VS install but if it is a common component it probably won't help. The next step would be to repair the .NET Framework and related components. But hopefully the log file will tell you what is wrong.
If the log doesn't provide any additional information then download and run procmon. Have it monitor the file calls. Then try to start VS. When it fails procmon should tell you what file(s) it was trying to open. Note that it is common for processes to attempt to open files that don't exist so you'll need to scan through the list looking for something that looks important.