Double Tracking using Google Tag Manager

I am using Google Tag Manager to implement tags for Matomo Analytics. But when I checked my website via inspect Network, there were two matomo.js, both from my GTM workspace, resulting the numbers tracked in Matomo Analytics are much higher than in Google Analytics. Why did this happen, and how do I solve it?

Thank you

If you put GTM into Preview mode, can you see what’s firing the tags? If might be that you’d set it to fire once per event rather than once per page (or you have trackPageVIew duplicated somewhere in your tracking code)

In GTM, ensure only one Matomo tag is set to trigger on the correct page views.