Firstly go to settings, then apps and notifications, then messages, and lastly, clear cache and data. It will not delete any of your messages, so you don't have to worry about it.