Them 2 codes as a pair indicate a bad maf .
Try removing and cleaning , and check air filter while your in there anyway .
It could also be vacuum leak , low fuel pressure etc .
But the common one is maf .
Them codes shouldn't reset
afaik , although some codes will after the fault has been rectified for a few miles . Loose gas cap etc .
Out of interest , did you fill up whilst awayn, then fill up with your normal fuel upon your return ???