Hi lito,
So I found out that there are two versions of lumerical installed in my system. I removed the older version and re-installed everything to the latest 2023 version. This no longer gives me the problem. I can create a fsp file and save it.
Also the python and api are not added to my PATH on windows, I checked it too. It works finally.
Thanks,
-Rakesh.