A Switch is a complex device with delicate electronics, and the battery is embedded inside, rather than in an easily accessible compartment. Making a mistake could break something critical. In fact, Nintendo strongly urges contacting its Customer Service department instead of doing things yourself, and there's no official DIY guide for any Switch 1 model.
While there is an official guide for the Switch 2, Nintendo notes that only consoles with the BEE-001(-01) marking contain user-replaceable batteries, as far as the company is concerned. On top of that, you need Nintendo's BEE-003(-01) Battery Replacement Kit, a careful touch, and an electrically grounded surface. A large enough static shock could fry circuitry.
The good news here is that if you charge your Switch properly, the odds of it surviving until your next upgrade without a battery swap are pretty good. It's more a question of whether anyone you pass it along to will enjoy the same luxury.

Warhammer Survivors update buffs XP and weapons, nerfs those damn Beasts of Nurgle
Can you play GTA 6 from an external hard drive on PS5 or Xbox Series X/S?
7 gadgets that'll instantly upgrade your Thanksgiving feast
Capcom's quirky dinosaur-fighting hero shooter is shutting down in 2027
Trump admin didn't investigate Jensen Huang before pushing Nvidia to bring him back: 'What does that mean, had Huang been investigated? For what?'
GTA 6 vault: How to open them during big bank jobs
Deceased BBC football commentator resurrected with AI for EA Sports FC: The family says it's a 'touching tribute' but some fans call it 'gross' and 'bleak'
State AGs are trying to stop Character.AI from auctioning off users' chat histories
As the US Treasury suffers a cybersecurity breach, its chief tech guy is vibecoding a Civilization clone