Your phone can not identify which computer it is connected to, USB an MTP protocol does not include something that could identify a host computer.
There is a feature for USB-C authentication planned but I have never heard that it is already supported by a device and if I understand it correctly it should allow to identify a device type or a device class, not ...
EDIT: false alarm, it turns out - the solution below worked only the first time after reboot; once OpenCamera was backgrounded, and then opened again to take a new picture - upon the tap on the last photo taken thumbnail, I got the old stock gallery (with all its problems) again :(
Ok, here first I found:
according to this link you forgot to append dtb. replace Image.lz4-dtb in the zip and flash from TWRP