There are some older studies that indicate it may be an issue if you eat them raw.
https://pubmed.ncbi.nlm.nih.gov/3731070/
https://pubmed.ncbi.nlm.nih.gov/2132000/
(and maybe more, but I'm lazy)
But the latter one seems to suggest that cooking them (including eating canned mushrooms, which get cooked during the canning process) should to mitigate it.