Storefront API checkoutCreate is failed sometimes

Hi everyone, I am developing a sales channel app using the checkoutCreate mutation of the storefront API. (API ver. 2022-10)

mutation {
  checkoutCreate(input: {
    lineItems: [
      {
        variantId: "gid://shopify/ProductVariant/00000000000000",
        quantity: 1
      }
    ]
    shippingAddress: {
      zip: "00000",
      country: "France",
      province: "example",
      city: "example",
      address1: "example",
      firstName: "example",
      lastName: "example"
    }
  }) {
    checkout {
      id
      webUrl
      availableShippingRates {
        shippingRates {
          handle
          price {
            amount
          }
          title
        }
      }
    }
    checkoutUserErrors {
      field
      message
    }
  }
}

Sometimes are succeed, but other times are failed with the following error, even though the same variantId and quantity.

{ 
 "data": {
  "checkoutCreate": {
   "checkout": null,
   "checkoutUserErrors": [
    {
     "field": [
      "input",
      "lineItems",
      "0",
      "variantId"
     ],
     "message": "Variant is invalid"
    }
   ]
  }
 }
}

Do you have any idea of solutions or a cause of the problem?

Hi, could you clarify the following things?

Does this error occur with the exactly same mutations with the same variants and shipping addresses or the same structure mutations but with different values of those fields?

Thank you for your reply.

It occurs with the exactly same mutations with the same variants and shipping addresses.

Is this problem solved, I also encountered a similar problem

This problem was caused by my mistake.
My system sometimes used to request an endpoint of a different store.
The API strangely responded this error to it at that time.