Quasi-exact solutions for guided modes in two-dimensional materials with tilted Dirac cones