TPMS does not come with spare time. Here are some links that you can refer to figure out the issue and solution. Hope it help.
https://www.mazdausa.com/static/manuals/2018/cx5/contents/05120200.html
https://www.youcanic.com/wiki/reset-mazda-tire-pressure-sensor-tpms-light