How dangerous is annual head CT scans for a few years? Can it cause cancer?

No. That dose of radiation is well within acceptable limits. I suggest getting MRI of the brain to reduce your radiation and get more information.
There is a. theoretical (albeit slight) increased risk with every added exposure. You can calculate it with an interactive tool at xrayrisk. Com.