Non-steroidal anti-inflammatory drugs (NSAIDs) are sold over the counter and by prescription, but there are safer choices for pregnant women. Some studies have found that taking NSAIDs (ibuprofen, naproxen, aspirin, celecoxib) during the early part of pregnancy may increase your risk of miscarriage.