I've gotten this as well, on very short code snippets. I type in a prompt and then sometimes it doesn't respond with anything, it gets stuck on the thinking, and other times it gets halfway through the response generation and then it gets stuck as well.
https://chatgpt.com/c/66e3a628-2814-8012-a6c5-33721b78cb99