My situation:

My H1B expires in 1.5 years. My current company is going to start applying in the next couple of months.

I had applied for a new job, and have been made an offer. However, the company has said that by policy, they cannot apply for my green card until I have worked there for a year. That would leave me only 6 months of H1B validity. The offer is really good, and the company amazing, but I am wondering if I should go for it - if it is worth the risk.

The reason for me wanting to switch jobs are complex, and I would not bring this up unless I really needed it. Any help/ideas/options/suggestions are really appreciated. I am really confused about what to do, and need to reply to the offer soon.