Samsung S10 keeps switching off when showing 50% or more battery charge

Solution
Sounds like the battery needs replacing. It is common for ones that are not actually holding a full charge to show as a higher percentage than they actually are.