With preparations like making a route plan, knowing the routes, prioritizing safety and staying in touch with someone you know will make it almost impossible to get lost. So, for most treks, hiring a guide is not mandatory, but if you still doubt if you need to hire a guide, you most likely do!
Details: https://honeyguideapps.com/blog/hiring-guides-while-trekking-in-nepal-everything-you-need-to-know