Using the gerund is not grammatically wrong. The verb try can be followed by either infinitive or gerund, but the infinitive is used many times more often.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.