I'm not sure if understand your problem correctly but maybe following might help:
If you have configured native VLAN for port on MX or switch port where switch or AP is connected and using VLAN tagging on IP configuration then you might encounter errors on the switch or AP.
Try using only trunk port without native VLAN or remove VLAN from IP configuration on switch or AP.