Ultraviolet catastrophe in a classical world
I think this is an interesting question. If one tries to couple the EM field to matter somewhat realistically and classically, he needs a model for matter. One possible model would be that of an assembly of uncorrelated dipoles. If we assume these dipoles to be point dipoles then the energy they emit is related to the wavelength as $\varepsilon_{\lambda} \sim \lambda^{-4}$. There is no discussion that this is correct as this corresponds to the Rayleigh scattering result and we more or less witness its effect everyday when we go outside.
So, it could be that the "ultraviolet catastrophe" attributed to the Rayleigh-Jeans formula, which incidentally has also an EM energy density that goes as $\sim \lambda^{-4}$, assumes somewhere that the scattering material objects are point-like.
At the very least for consistency reason, at equilibrium, the energy density emitted by an assembly of dipoles has to agree with that calculated independently for the EM field and the two above results have to agree.
Now, the point is that at high frequency, the wavelength becomes of the order of the size of the scatterers and we could get for instance something close to Mie scattering instead of Rayleigh scattering. The effect it would have is that the energy fraction emitted by a scatterer becomes roughly independent of the wavelength in this regime and so something will probably happen and prevent a fully diverging energy density at short wavelength.
So in effect, one would have to cut off the spectrum somewhere and make it at least saturate at some value.
Note that this is something ubiquitous in statistical mechanics (on a quite different note the partition function of a single hydrogen atom diverges and one needs often to put by hand a cutoff corresponding to an atom radius big enough to create an ambiguity between a pair of H atoms and an H2 molecule) and it is probable that people are often too eager to claim, a posteriori, that a new theory was definitely needed while something could possibly have been done with a better model.
This of course does not mean that quantum mechanics is not required in the end but it means that the dramatic failure of the Rayleigh-Jeans formula is a problem owing to all the assumptions leading to the said formula, not just one.
What would happen if you put a theoretical fully classical system in contact with a thermal bath (which seems like a physically reasonable set-up)?
I assume by the system you mean perfectly reflecting cavity so it has infinite number of modes and can theoreticaly contain unlimited amount of EM energy, in high frequency modes. And by thermal bath, I assume you mean some system in thermodynamic equilibrium but with finite energy.
For example, we can put a glowing piece of graphite into this perfect reflecting cavity.
What would happen depends on whether there is mechanism that can carry energy from low modes into arbitrarily high modes. If so, the cavity would transform the radiation of the graphite into gamma and higher frequency radiation. For a system whose energy is quadratic function of state variables (the simplest model of continuum field such as elastic medium or EM field), it is much more probable that energy is in the high frequency modes than for it to stay in the low frequency ones, because density of states increases with frequency. No equilibrium could be achieved, this would be a run away process.
If there is no such mechanism of transfer, or if it works only up to some frequency (most likely in reality), then perhaps some equilibrium could be achieved. Depending on the size of the bath, the assumption about it not being susceptible to change could be valid or not.