Just because your game is flopping doesn't mean you should blame piracy.
Games like Undertale sold a million copies on steam because it was priced @10$. 40$ is borderline AAA territory. Very few non AAA games charging that much become successful on Steam. The select few usually have a strong pc following and/or rpgesque kickstarter type of stuff.
20$ has become the new 15$ in the past year or so on steam. That has somewhat been accepted by gamers. Jumping all the way to 40$ is not a great idea for an indie dev. You are just playing with fire. The consumer will always decide the direction of the market. If PC gamers aren't willing to pay 40$ for your game then its not worth 40$. That is just how it works. And the same goes for console, handhelds etc.
Devs who bring up piracy as an excuse are out of touch with pc gaming and just looking for anything to blame but themselves.
He made an incrdible game that can last anywhere from 60-80 hours that got some of the highest review scores in recent memory. It's well worth $40, there's an argument to be made that it could have been $60. You're attitude that no indie studio should price their game more expensive is harmful to the industry really, the game cost 5 million dollars to make, looks visually beautiful and was a labour of love from one individual and his small team but you think he should charge $20 because "that's what indie games cost"? Honestly, here he is the victim of piracy, he shouldn't be blamed because people are basically stealing his game. Smh.