I would prefer must in your sentence but I do know that had to is used by many natives instead. I don't think there is agreement on this. Usage of verb forms is sometimes quite confusing in English.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.