Company B charges 6 hours per fitter to determine that the foundations are not correct? Sorry, but the very first thing the foreman does after getting out of the car is to measure the foundations. Then he knows whether he can build the carport or not.
If they decide to try it anyway, that’s their problem, not yours. The carport builders are the experts and therefore have to be able to assess whether it makes sense or not. If it doesn't make sense, it’s botched work, just like from contractor A, and you don’t have to pay for it.
Whether it’s worth getting something from company A... if at all, only in a few years, until then you have to manage without a carport and pre-finance your lawyer. If company A decides to go bankrupt in the meantime, the money is gone, including the money for the lawyer.
Could you take the measurements of the carport? Tip for next time: after finishing the work, measure yourself roughly whether it’s correct, meaning accurate to the centimeter, not millimeter.
I also trusted my excavation contractor and now have leaking rain pipes underground... Never trust a craftsman blindly...
B was there, measured, called, said the foundations don’t fit, and left again.
Round trip was just over 100 km.
The 6 hours were given as the total of travel, on-site inspection, departure, unloading material, and loading it again next time.
And yes, I am very annoyed in hindsight for not having checked whether the foundations were laid according to the foundation plan.