Degenerate fermionic matter at N$^3$LO: Quantum Electrodynamics