bro i had the same issue replaced many self motor but didnt resolve the issue then after 1 year i came across a mechanic for spark plug change he start the car but it failed (it always used to do it when temp niddle is at mid)
to start .he examined battery n changed the terminals of battery and tighten the ground and then he said
self mar k check kro pai g
....now mashallah i never faced the issue again .in starting issue more than 70% case is of pure battery or current flow then it comes to sensors like ckf ,o2,tdc etc...
on heating resistance increases so try to change your terminals for just Rs 50 ... its not worth extra