An EF-S lens will work on an EOS M5 via the EF to M-mount adapter. As the M5 is a cropped sensor, the lens focuses the proper sized circle with no loss of pixel resolution.
Arrgghh! Why didn’t I ask you? Already packaged and sent out to second person.