"I'm really trying to write as few mistakes as possible"

Or you might say

When writing I try to make as few mistakes as possible.