Your major falls into the STEM category?
If yes, then extend it.
If not, you would pursue the next level degree like a master degree and then you can attempt H-1B again after the completion.
Or, apply for the master degree near your location with keeping working your current job, and apply for a green card. In this case, you may need to ask your company for their support on your green card process.
Good luck!!!