Where exactly is this notice showing up? The code itself is inside the core set_theme_mod()
function, so it should only generate when that function runs (which shouldn’t be all the time).
My guess is that it’s some sort of corruption in the theme_mod_generatepress
option – perhaps it’s worth deleting that option so WP can generate a new one? You would need to reset your copyright, logo and menu locations if you do that.