Would there be any consequence for Github themselves if they no longer had this data (for example in the hypothetical case that they only store access logs for 30 days)?
No. You can't provide what you don't have, and you are not obliged to save more than you are obliged by law. I'm not aware that Github has to save anything in the first place.