Who said anything about spontaneous generation? Abiogenesis says nothing of this. It is the study of how life can arise from inorganic matter. It doesn't say "one day inorganic matter, next day *poof* life". In fact ironically you stated "The question is how did the first nucleic acids arise." and this is precisely what abiogenesis is all about.
You should do some research into the experiments that have given rise to amino acids (the building blocks of life) out of a "soup" of inorganic matter. The Miller-Urey experiments did not conclusively prove it could be done, but they did succeed in showing that it was at least possible.
You should do some research into the experiments that have given rise to amino acids (the building blocks of life) out of a "soup" of inorganic matter. The Miller-Urey experiments did not conclusively prove it could be done, but they did succeed in showing that it was at least possible.