WOW. The pain in your right side could have been fasciola in your liver. Congratulations on the worm expulsion!
Here is a little paragraph from the Americal Chemical Society Journal:
Because factors such as geography and climate affect plant biochemistry, it's impossible to precisely pin down an exact chemical composition for myrrh or frankincense. However, the resins do contain sugar chains, proteins, and steroids, and are mostly a blend of terpenes, a diverse family of hydrocarbons made from five-carbon building blocks. For example, frankincense contains five-ringed triterpenoids called boswellic acids, as well as an array of mono- and sesquiterpenes that contribute to its scent, including α- and β-pinene, limonene, and 4-terpineol. Myrrh's aroma, meanwhile, comes mostly from furanosesquiterpenes such as furanoeudesma-1,3-diene.
https://pubs.acs.org/cen/whatstuff/86/8651sci2.html
/>
The terpenes are probably responsible for the effect. This is good news for those of us considering using turpentine but are hesitant.