Create a new local administrator account in Windows. Log into it and launch SolidWorks. If it works, your original user profile is corrupted (corrupted registry hive or temp files).

"Cannot initialize library SolidWorks 2012" Context assumed: SolidWorks 2012 (older CAD application) failing to start or load libraries on Windows.

SolidWorks 2012 cannot read files from versions newer than 2012, but modern versions (2020+) can open 2012 files. If you rely on 2012 for legacy work, the long-term solution is either a dedicated Windows 7 PC or migrating your designs to a newer SolidWorks version (student edition or commercial subscription).

Solidworks Error Cannot Initialize Library D D - Google Groups

If none of the above works, the installation is deeply corrupted. Do not just uninstall via Control Panel. Use the or the SolidWorks Clean Uninstall Tool (available from your VAR).