HGV driver almost had to have his leg amputated after crash