Preventive measures include the careful use of NSAIDs and anticoagulants, regular screening for GI conditions in high-risk populations, and lifestyle modifications such as reducing alcohol consumption and quitting smoking. For those with known risk factors, medications like PPIs may be prescribed to reduce the risk of bleeding.