If a spell or ability your opponent controls reduces your maximum hand size, Tamiyo’s first ability won’t stop you from discarding cards when the game rules cause you to discard during your cleanup step.