A van pulled up and I over took but a car was coming towards me, so I accelerated to avoid the vehicle
If I have understood properly this will not give you a defence I’m afraid. The court will form the view that you should not overtake if the road ahead is not clear. It’s not a defence to speeding if the offence was committed whilst you were overtaking I’m afraid.
Have you got any points already? If so, how many.