80177D is a fault stored in your BMW's memory (an ISTA fault code, not a standard OBD-II P-code).
What it means: Tailgate module (HKFM): the LOWER tailgate section (split tailgate) detected an obstruction (blocking) and stopped. This is the anti-trap protection, NOT a fault — something was in the way or the flap was held/overloaded. Nothing needs to be done — clear the code; if it happens without any obstruction, check the lower section drive and lock.