You should be discouraged from abandoning projects when hitting a wall. I’d advise against dropping out of PhD program if you don’t have a publication ready in second year. Also, there’re people who truly enjoy science and pay isn’t the deciding factor.