Is my fast invalid when I drink water out of forgetfulness that I was fasting while fasting Qadha for Ramadan

Your fast is ok