I looked it up in the dictionary and it was given this example:
Low-lying farmland may be at risk from flooding this weekend
It was also said that the use of of is generally allowed. So I was wondering whether or not
Low-lying farmland may be at risk of flooding this weekend
would be marked as grammatically correct.