I-485 is change of status, from temporary status (H1-B, H4,..) to permanent status (So called GC). I am almost certain that approval of 485 voids H1B.
If the marriage happens afters I-485 approval, you have no options..no F1, no B1, B2 ..nothing in deed. You have H1-B option but that became like winning a lottery.
In F1, you must declare that you have no intentions of migrating to USA which contradicts the fact you married a permanent resident of USA. If you say yes, you will not be issued F1. If you say no, that falls under misrepresentation/fraud. In essence, thats not an option.