While nonsteroidal anti-inflammatory drugs (NSAIDs) ease pain and inflammation, they also have side effects. These include stomach pain, nausea, vomiting, headache, and anemia. Sometimes your doctor will give you another stomach-protecting medication to take with the NSAIDs. This will make stomach bleeding less likely.