By the end of The Forest, Timmy has his seizures because, just like Megan Cross, he was brought back from the dead using the Resurrection Obelisk. Those seizures occur to him because they are the initial phases of him transforming into a mutated monster. He either cures himself, or he will eventually turn into one of the monsters his father fought to save him.