You should reset your Android device and erase all of your personal data before you sell it, trade it in, or give it away.
If your Samsung Galaxy S10 is acting strange, here's how to "soft" reset your Galaxy, turning it off and on, or reset it to its factory settings.