Did someone gave "TinyWindows" a go? (win95 in 5mb)
https://tech.slashdot.org/story/03/08/08/0437218/windows-95-in-447mb

DirectX and drivers must be added, but it should be way smaller than a normal install.

btw. i remember the old registration code for win95 - any number that can be divided by seven