Have you realized that the old messages get removed automatically after a while?
Do you want to know what the exact limit number is and how you can change it? Do you not want your old messages to get removed at all?
You can manage everything about it!
Go to the Settings of messages
The specified option is what lets you manage the limit of stored messages.