It's okay, try to accept and thrive for better in the current field. Government exams are a big gamble, Be proud that you are one of those who tried.
Your age doesn't define your success. Everyone's growth process is different. Focus on yours and try not to compare yourself.
Think of the ways you can grow in this current job.