If you suspect this is happening to you (all of the sudden you can't really breathe), is there anything you can even do? Or just hope it's not bad enough to be fatal?
Go to a doctor right away. There are anticoagulants which can dissolve blood clots and/or ways of physically preventing the clot from reaching the lungs.
Also an ounce of prevention: avoid extended sitting; exercise regularly.