Hi vaishali anreja,
Please go to C:\Program Files\Microsoft Office\Office15\Library\SOLVER, to open the SOLVER.xlam, check whether the issue could be reproduced.
( Please note, when you have 32-bit version of Office 2013, "Program Files should" be "Program Files (x86)".
Have you tried the method 2 and methods 3 mentioned in article "You receive a "Compile error in hidden module" error message when you start Word or Excel"?
The startup folder of Office 2013, please go to the following path. When there are files or folders, please move them to other location for a test.
C:\Users\<Account Name>\AppData\Roaming\Microsoft\Excel\XLSTART
C:\Program Files\Microsoft Office\Office15\XLSTART
I also suggest you disable 3rd-party add-ins if there is for a test.
Go to File > Options > Add-ins > Manage COM add-ins > Go, clear the box of any 3rd-party COM add-in.
When nothing helps, please change the structure, such as uninstall 64 bit version and install 32 bit to check this issue.
Any questions, please let me know.