How can I continue staying in USA if my OPT extension is denied due to unpaid work?

How can I continue staying in USA if my OPT extension is denied due to unpaid work?

  1. Can I take admission in university?

  2. Can I apply for H-4 visa?

Plz suggest what can be my options?

What is the process to apply H4? even i’m facing the same issue could you please suggest me .