Concerning throat blockage

About 6 weeks ago I had a pretty bad upper respiratory infection (I was out from work for 2 weeks). Since then, I haven’t felt 100% but it seems to be getting better. Yesterday I went home from work due to exhaustion and body aches (no fever or coughing). I slept on my back with the APAP humidifier turned one up from usual (6 out of 10), and I use a full face mask, which I usually sleep very well with. I woke up with a solid mass of mucus and blood (not dry) blocking my esophagus. Could this be from something from the machine, or do I need to get it checked out separately?