Hi,
There is no restriction to limit payment methods based on the products in the cart.
What you can do is use the weight / volume restrictions. For example, you could set a weight of 9999kg to your product and a minimum weight of 9999kg in the payment method. That way, it would only be available if there would be at least one item of that product in the cart.
Based on how you set the dimensions / weight of the other products and the restrictions of the other payment methods, you can configure different combinations based on your needs.