A migraine is not your body telling you something is wrong. Sometimes they just happen. Not all migraines are triggered. Even when they are triggered the brain is mistaken that something is wrong. Please don't spread misinformation.
Seems like pain is an indicator that something is wrong to me.