There is no problem with my scenario. There is no right or wrong answer. I’m just asking what YOU would do. In your case, you would drive away. You have answered the question.
I think you are missing the part where the officer has a responsibility to arrest/detain the person who has just assaulted him.