I think those folks are best off seeking professional advice from their doctors :)
There are always exceptions, like with vaccines where some people cannot take them - which is why it's so important that those of us who can wear masks, do so, to protect those who cannot for completely legitimate reasons (not "religious reasons" as I saw some chump proclaim in a recent viral video, or other similar quackery).