Closing the issue as it got fixed after I re initialized my backend completely with strapi new backend
strapi new backend