Bizarre issue preventing response from gpt-4o-mini (‘The model produces invalid content’)

Is there any solution for this issue? I keep running into this problem every now and then.

openai.InternalServerError: Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently. ', 'type': 'model_error', 'param': None, 'code': None}}