Match Template different results on Mac M1

OS: MacOS Monterey
Version: 12.5
Chip: Apple M1 Pro
Python: 3.10.6

We installed OpenCV version: 4.6.0 via opencv-contrib-python · PyPI
opencv-contrib-python ==
We observed that our test cases are passing for both linux and windows but mostly failing for M1, mainly the reason we observed on M1 opencv matchTemplate return nan for many cases (on M1) which was not the case with other platforms. We need to understand if all casing are passing on other platform why is it failing for M1, is there anything a flag etc that need to be enabled to have same behaviour on M1. Method we use are TM_CCOEFF_NORMED and TM_CCORR_NORMED. Kindly let us know if cross platform issue specific to M1 can be resolved.

The M1 is a different CPU architecture (ARM) compared to usual computer (x86-64).
I would suggest to produce a minimal reproducer code with the corresponding images and post the issue on the OpenCV issue page.