In these types of sentences, can wrth be changed to yn ymyl or ger?
Yep, those would be fine too.
I typed the translation (correctly) instead of typing what I heard. When I've done this before, it notifies you, so you realise the mistake and you get a chance to do it properly. This one just marked it incorrect.