With skin cancer, getting a sunburn every two years triples your risk of developing melanoma. With the fairest skin types, even a single severe burn can increase risk if melanoma. Other skin cancers tend to result from constant exposure over time.
I don’t know much about this scenario with hair product. But if you have some other risk factors, it’s not unreasonable that a single exposure may result in a bad outcome.