If you're using a dock, you are best off with a genuine Nintendo AC adapter, because the dock requires two very specific voltages (5.0V 1.5A and 15.0V 2.6A) that not all third-party chargers can handle correctly.
If you're charging the Switch by itself, any USB-C charger should be fine as long as it can put out 5V and at least 1.5A.
But if you are indeed getting error 2
7
01, then it's probably not a charging issue. Charging problems generally get error 2
1
01. The only thing I can find about 2
7
01 is that it is
outside
the normal range of hardware codes, which suggests a
software
problem. Make sure your Switches have the latest firmware updates.
Minutus cantorum, minutus balorum,
Minutus carborata descendum pantorum.