Some horses do test their riders.... Do you know how to get him going once he walks or how to get him to stop rearing? I do not see you saying that you fell off, so I assume you stayed on.
Is there anyway that by getting off, you unknowingly trained him to rear or throw his head? Are you somehow making it easier for him to do these "bad" things as compared to what you want?
Is there a way to drug test a horse to see if he was buted to sleepiness and compliance?
Examine your abililties with his actions to see if you can handle him. I would not be so quick to label him a problem horse.