80178F 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): soft-close of the LOWER tailgate section, right side — the main catch of the lock is reported as not engaged while the flap is closed. Typical causes: the flap was not pushed fully shut, dirt/ice in the right lock, or a misadjusted or faulty lock/micro-switch. Check that the lower flap is properly latched (safety for luggage); if the code returns, clean the right lock and have the lock/switch checked.