I also have a GA15 engine. I am an auto electrician and work on many problems like this.
My car wouldn't start two weeks ago, no spark, so I got my wife to bring the second hand distributor in the garage so I could fit it. That worked for a week but then I had trouble again on the weekend when I tried to start it with a warm engine. I could see the rev counter not moving then it started bouncing and eventually the car started.
We have had problems in the past where a starter motor, on a NIssan, with worn brushes can cause a frequency from the arcing that interferes with the ECU and it won't start.
A test to do if it is a manual car is to see if it will push-start - that eliminates the starter motor from the equation and if it will push start but won't crank-start there is a good chance it is the starter. I've ordered new starter to fit to mine just in case.
With mine it was also when the car was warm.