Check in your mining classes. When the mining event occurs, there will be a section that will replace the object with a depleted ore. You can just bypass that if you really want to, or you can just allow the ores to have a range similar to how woodcutting works so that you can mine multiple ores and then it is depleted.
If you need more help as to how to actually stop if from depleting, PM me your discord and I can show you over anydesk or TV.