X-Ray like Shading Error in EEVEE but not Cycles
Ten to one, you have the shader blend method set to “Alpha blend,” which is useless for things more than one face thick. Use “alpha hashed” instead.
This is probably in the top 10 FAQ.