Allow me to posit a cause and effect: TMJ and migraine may share a commonality: Occlusal Parafunction, i.e. bruxism, clenching, moving the jaws beyond the normal "envelope of function." In both, the Trigeminal nerve ganglion is involved. The muscles of mastication (chewing) are overused and then fatigue. The muscles then fatigue and are no longer synchronized with each other in their function... leading to muscle pain and headache. An increase in parafunction may be associated with headache formation in persons who are prone to migraine.
Parafunction is not the only cause of migraine and thus the condition should be evaluated rather than assume that TMJ is the CAUSE of your migraine. However, there may be an association.
The act of holding the scuba mouthpiece may serve to exacerbate the already existing muscle fatigue and perhaps trigger the migraine experienced following diving.
There is an FDA approved dental device for the treatment of migraine called and NTI-tss. It serves to relax the major muscles of mastication and thereby reduces the incidence of headaches.
You might want to look into the device. Certainly your headaches should also be evaluated by an MD specializing in migraine diagnosis and treatment. I am enclosing a link to the NTI-tss site. There are a number of videos and other information provided there that may be of interest.
While I have made these devices for patients, it is usually in the treatment of TMJ without migraine. The results can be variable and often requires that the patient is actually willing to learn to wear a new "gadget" in their mouth while sleeping. There is also a device for daytime use.
I have no affiliation or financial interest in the sale or manufacture of the NTI and am providing this information for discussion between you, your physician and dentist.
NTI-TSS.com - The most effective FDA-cleared Dental method of migraine prevention.
The PFO/migraine association should also be evaluated.
Laurence Stein, DDS