Can RNases/DNases survive in strong acid/base solutions of around 10M?
You are safe here.
RNase is much more stable than DNase (of any flavor). Extreme pH would destroy even RNase, especially considering time (it has to sit in the bottle with all that acid/base..)
Also, consider this: it is highly unlikely that high-tonnage chemicals like HCL or NaOH could be contaminated with organic enzymes.
If you have a problem with RNase/DNase contamination I would look elsewhere for the source of it.