This is simply “abusing the model”.
What do you expect when you pass 8000 lines of code to an LLM?
Why not 80,000 lines? Or why not 800,000 ? Or send ChatGPT 8,000,000 lines of code and post when that fails as well?
Break up your code into small modules and submit small components to LLMs.