I'm afraid you'll have to learn those words one by one. Some grammar books written for foreign learners contain lists of the most common uncountable nouns students make mistakes with. Also, there are some fairly reliable "rules".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.