Possible solution to infinite loop when forcing markdown output format

Lately I have encountered the bug that when forcing chatgpt to generate its output format to markdown format it enters an infinite loop, rendering the same response over and over again, if I don’t stop the output that stays there and effectively I left that for at least 3 hours, and it didn’t stop. Does anyone else have this happen to them?