Was the vehicle in a prior collision before you took title? How do you know for sure? Did you check the Facts, DMV and former Insurance Company?
A lot of people don't even bother asking, but when buying a Used Vehicle, there is no law prohibiting you from asking for the insurance company and policy number associated with the vehicle before you buy it as a part of "due diligence" on your part. If the seller balks on that - it might raise my eyebrow depending on the rest of their demonstrated demeanor. If they got insulted at the notion, I'd let somebody else buy the vehicle.
If you bought used from the dealer, then it should come with either its own used vehicle warranty (if applicable). If not, and depending on miles (you said "low") then it could still fit under the New Vehicle Limited Warranty offered by Mazda USA. Regardless of how you buy it, a thorough pre-buy inspection would have been preferred. At this stage, if you have local DIY garage nearby, you can (and should) rack the vehicle yourself (or bring a good mechanic with you) and inspect from
under the vehicle to check for panel fitment, alignment, wear and parts status (condition, OEM grade, etc.). You are looking for signs of "auto-body repair work" having been done to the vehicle before you took delivery.
Lastly, these are mass produced vehicles run through a production line. Something is going to go wrong at some point causing irregularity in fitment somewhere along the way and with a certain number of vehicles within each production run. Most of those will be caught by Mazda during QA/QC checks, pulled out, fixed and put back into the regular dealer deliver schedule. Some will slip through, be put on a ship in Japan, land at a dealer in the US and then end up in your garage one way or another - bought new or used. Nature of the beast.
I hope you get this problem "straightened" out - no pun intended.