There's a common consensus in economics that bubbles are really hard to predict, and even some argument that they don't actually really exist. Great paper came out recently called "Bubbled for Farma"[0] which looks at predictability for bubbles and finds some indicators but no sure fire thing.
That sort of rules out an easy or known way to predict and avoid bubbles. That said, it's worth noting our current historic period marked by being post financialisation (taking out a bunch of investment regulation) of markets in the 80s exhibits a lot more economic crashes (the real reason we should car about bubbles) than most of history (although most of history also does not exhibit any economic growth, so be careful what you wish for).
In particular, the period between around 1930-1975 showed extremely high growth with almost no bubbles or market crashes[1].
So my semi-knowledgeable but definitely not expert view is that: - Bubbles and crashes are not easy to predict, and therefore avoid - That said, our existing market rules have effects on the number of crashes/bubbles we see (but there's debate around whether you actually would want an economy with less crashes/bubbles if that meant left growth)
[0] https://www.hbs.edu/ris/Publication%20Files/Bubbles%20for%20...
[1] You can find this discussed a bunch of places but Ha-Joon Chang's Economics: The User's Guide talks about this very fluently.
Edit: I think your question might actually have just been about personal protection again bubbles, rather than protecting the economy as a whole. In which case, having margin in your spending so you'd be able to live if things were some portion more expensive against your earnings is probably the only sane suggestion.