Mark Allen said recent weeks have been "very tough" after closing out a 6-3 win against Yuan Sijun to reach the last 16 of the UK Championship in York on his return to action following mental health struggles.