Our awning was doing this ,it would close within seconds (some wind) or minutes (no wind).
After many searches I downloaded the manuals from carefree.
https://www.e-carefree.com/ecarefree30/product-library
The fix was to tighten the 2 locking screws, they were very loose.
Even the smallest gust would close the awning, not now!