It's not impossible to replace the battery - https://www.ifixit.com/Guide/Samsung+Galaxy+S10e+Battery+Rep... - it's just a bit of a pain.
And, yeah, it probably does compromise the waterproofing.
And, yeah, it probably does compromise the waterproofing.