Welcome again. I have sorted out the code tag problem, but again could not reproduce your error. I also got rid of some of the excess blank lines, which do not add to legibility, but I do not think I have altered the code materially.
The only way I think you can get such an error is by recursively calling the constructor in the same class, like Foo here:-You are creating so many objects that you are running out of space for all the constructor calls. I cannot see any code which would produce that error with what you posted. Please check.
Don't use HTML br tags in your posted code; only use spaces for formatting.