While I am fully on board with doing the gaskets. I doubt they are your bigger problems.

P0452 is fuel pressure sensor low voltage
P0171 is lean bank one (which shouldn't automatically be considered a gasket, maybe an EGR tube or a gasket, but locate it first if you haven't already)
P0102 MAF

If your maf is calculating incorrectly, it can add to fuelling issues which can lead to LB1.