Hi!
Just to report back so it may serve as a new data point for other travellers: I confirm one (by my experience in last April) one can check-in baggage at Madrid Barajas T4 up to 24h before your flight with no issues. Confirmed also by the check-in agent.