The error may appear when there's an issue with the browser, Raviraj.
There are times that your browser is full of frequently accessed page resources causing the error when uploading a GSTR-1 file in JSON.
Let's perform some troubleshooting steps to fix the error. You can open your QuickBooks Online (QBO) account using a private window to check if you can upload GSTR-1 without getting an error. Use these keyboard shortcuts based on the browser you're using.
For Firefox or Microsoft Edge, press Ctrl + Shift + P.