Why does Don Quixote decide to hurt himself?

A.
He wants to frighten Sancho Panza.

B.
He is angry at his bad luck.

C.
He has been put under a spell by Freston.

D.
He wants to demonstrate his devotion to his lady.