Very lucky people indeed.
I will be very surprised if cargo shift played a role.
Just appears, the aircraft was not producing enough lift at a suitable point on the runway and even suitable lift at runway end.
I hope we learn all the lessons from this event.
My thoughts with all involved, Cheers.....