Hi!
Sorry for the delay.
First of all, I think you should check the configuration of the trunk and qinq, because you mentioned that the router could access the switch through trunk but failed through the qinq and the inner VLAN does not match to the trunk PVID.
I think if may be caused by the inner vlan, then you should check the router configuration, please make sure the source interface is configured with sub-interface, whose PVID matches the the qinq inner VLAN.
If the router doesn't configure the sub-interface, then it's normal that the router cannot access the swtich via the qinq, because it cannot deal with the VLAN packet.