how does a radio receive an AM wave with an improper antenna size
but for these frequencies the antenna length will be in 10s of meters

That is only true for an electrical antenna.

But these radios use a magnetic antenna for the low frequency bands,
like this one:



It's a ferrite core with a coil wound around it.

It picks up the magnetic part of the EM waves.