Unfortunately, if you play on a console, you will have to practice against obstacles as they happen. If you play on PC, though, you're in luck.  Hollow Knight has a very active modding scene, and those mods include incredible practice tools. The devs actively support modding too, which is fantastic to see. The most up to date mod tools are available through the official Hollow Knight Discord Server.