To fix the QuickBooks script error issue:
Update your browser to the latest version and clear the cache and cookies.
Disable any browser add-ons that may be causing conflicts with QuickBooks.
Try using a different browser from the one that you are currently using.
Reset QuickBooks to its default settings.
Uninstall and reinstall the QuickBooks software.
If none of these steps work, contact the QuickBooks customer support team to get further help in this regard.