> The only way you get out of being liable for rear-ending someone is if the leading car maliciously caused you to rear-end them, or if something unpredictable happened that would have made it impossible for you to avoid hitting the other car.
This is literally what happened in this situation. If you have a dashcam and something like this happens, you won't be found at fault.