If it is the first, you have a problem. If the second, there are 2 things to try.
1) Loosen the 2 fore-end screws, center the fore-end, re-torque to spec.
2) if that doesn't help, your action screws may be loose. The front action screws are self explanatory, for the rear, you are going to need an extended 5/32 ball end Allen wrench to get to the bolt under the mag catch.
Pro tip. Don't take the mag catch off unless you want to deal with putting the most annoying mag catch spring in the history of firearms back on. It's doable, but I sailed a few tools across the room before I got it.