Got 500 error in Theme asset update API response

Hi,

We got 500 in the response of one of the Shopify API.

API details are as follows,

API - Creates or updates an asset for a theme

URL - https://hagsatf14.myshopify.com/admin/api/2022-04/themes/120527716461/assets.json

Asset to update - sections/main-product.liquid

Even after throwing 500, the asset got updated.

Can someone help what went wrong in this?