Hi Nishant,
I am afraid I do not know. I have not tried this before, all mine run of windows or Linux. I know some people have it working on older Macs but I am not sure about M1.
It seems like it is a Beaglebone-specific question, I found this forum thread that might be interesting: https://forum.beagleboard.org/t/is-my-beaglebone-black-busted/29513
But I could not see much more than that online. I suppose it is a fairly old computer (Beaglebone) interfacing with a rather new one (M1) so there may not be a wealth of people trying to do the same thing…