Are you able to give context on why you need that? Perhaps there's another approach.
Since a Gift Card is a payment method on checkout, it doesn't have the same restrictions of use that you might see with a discount code.
Gift cards don't give you abilities to restrict how they are used. Once a customer has them they can be used on anything. That is by design.
Can't go into more specifics as we are not getting into details but this path doesn't sound like the right one for the need you're trying to meet.
There's possible approaches you could look into with checkout.liquid access should be you on the Plus plan.