@notsure411400 Safe distance = enough room to stop if the vehicle in front stops short. Based on the damage to the front, that wasn’t a safe distance.
In a rear end collision the person hitting from the back is almost always at fault.
Thankfully you have insurance and they’ll take care of...