Regarding the magazine, this may not be your problem, but...

Two friends have had the same problem, and in each case the fix was the same. I pointed out that the proper way to insert the mag was to angle the rear of the mag in first, then swing the front end up to snap in place. "Problem" solved. (I also hinted that their rifles had come with owner's manuals for a reason.)