Jason got to the royal lake very early in morning. He had made the decision to go back home. Going over how he got there in his mind over and over again.
He could only come to the conclusion that he arrived through sleep. But he had fallen asleep many times in the novel and didn't return home. So he figured that if he died in the novel then he would be safe back at home.
His soul would leave the book and the real Nedryn would return to the body and write his wrongs. He just had to do it, it was the only solution that he could think of to end both his and the crown prince's suffering.
And if he died then the author would have no choice but to fix the problems that he had created in the story between Davion and Sashina.
Then the two lovers would get their happy ending and he will be back home cheering for the crown prince. While cherishing the memories that they made together. They weren't much but they were his and he treasured them.