Your post is a bit sparse on information. To start – what version of SonarQube are you using? What’s the nature of this file (is it very complex?)
Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:
7.9.x → 8.9.8 → 9.4 (last step optional)
If your error persists after upgrade, please come back to us.