This may occur if the Windows language/locale is non-English non-ASCII
Sometimes just cleaning the setting will help:
Try cleaning up the %APPDATA%\Ansys\v231 folder to see if it resolves the issue.
In the File Explorer address field
…An Explorer Window will open
Rename the v231 folder to v231.old for the appropriate version.
v221 = 2022R1, v222 = 2022R2