I've made this very mistake myself but I was lucky enough to have enough runway to start over and talk to customers first then pivot the product to something that they actually need.
I call this the "I have an idea for a startup!" issue. You hear it all the time from family/friends. Where they tell you this great idea for a product they had. This is the wrong approach. What you want to say is something like "There is this really interesting problem that everyone in ecommerce is facing right now"