Question: I am on a CPAP machine, is this machine harming my lungs?
It may well be weakening the diaphragm but that might be the lesser of the evils to dying in your sleep. My objection with the CPAP is that they do not as well train people to develop better breathing. The CPAP is probably weakening the breathing. If the optimal breathing mechanical function were established you probably would not need the CPAP. This may or may not be easy to attain.
Reasons for being on the machine are varied so it may save your life or just take you away from handling the situation yourself with proper guidance and not need to be a lifetime aid.