If your vehicle rapidly closes in on the vehicle ahead because the vehicle applies the brakes suddenly while you are traveling in headway control, the warning sound activates and the brake warning is indicated in the display. Always verify the safety of the surrounding area and depress the brake pedal while keeping a safer distance from the vehicle ahead.
Additionally, always keep a safer distance from the vehicles behind you.

Mazda Radar Cruise Control (MRCC) Display Indication
Setting the SystemMazda 6 Owners Manual: Settings
NOTE
Depending on the grade and specification, the screen display may differ.
Select the icon on the home
screen and display the Settings screen.
Switch the tab and select the setting item you want to change.
You can customize settings in the setup display as follows:
...
Mazda 6 Owners Manual: Cargo compartment light switch inspection
1. Remove the liftgate lower trim. (See LIFTGATE LOWER TRIM
REMOVAL/INSTALLATION)
2. Disconnect the cargo compartment light switch connector.
3. Inspect for continuity between the cargo compartment light switch
terminals using an ohmmeter.
If not as specified, replace the liftgate lock.
...