Yep they do appear to be 8-32 UNC which nearly is a match with an m4 screw, definitely works so threads must be close enough.
I think m4 is a common screw thread such as kitchen handle screws etc as example.
Ideally you need it to be around 10mm long
I’ve now fitted mine using Velcro on to my Pedaltrain Metro, did consider 3M dual lock but that stuff is hard moving pedals again so used 50mm wide Velcro 👍