If I qualify one year and not the next, do I lose the bonus depreciation I already took?
No. Material participation is tested one tax year at a time. A loss you deducted in a year you qualified stays deducted. In a year you do not qualify, that year's loss from the rental is passive: it can offset only passive income, and the rest carries forward.
If you qualify again later, the carried-forward losses can offset that rental's income, but not your wages. Any losses still unused are freed when you sell your entire interest in a fully taxable sale to an unrelated buyer.
Learn more: Read: bonus depreciation rates by year · Watch: what is cost segregation?
Source: 26 U.S.C. 469(a), (b), (f)(1) and (g) · 26 CFR 1.469-5T(a)
General information, not tax advice. Tax law changes, and the right answer for your return depends on your facts.