You need to ensure that VLAN A never(*) tries to transport data at more than 1Gbps, and strictly prioritize VLAN A over VLAN B.
(Note: For example, Lossless Ethernet and Fibre Channel work by stopping the sender if the network cannot transport the data. This implements admission control for the network. If the sender sends more data than the network can transport, not all the data can reach the destination.)
(*) short bursts may be mitigated by buffers