disabling "ModelingToolsEditorMode" in Unity 2022.x

You will need to move your project in a shorter path location.

For example: C:\UE\YourProject
You can use this tool to check the maximum path length of a file: Releases · deadlydog/PathLengthChecker · GitHub
I believe it should be less than 140 characters for a path file location.

Is your project an unreal engine ?, because .uproject and ModellingToolsEditorMode are specific for unreal engine which is pretty weird.