My brother is in Japan at the moment and has the opposite situation. He's paid in JPY and had saved up a fair bit of cash over the past couple years. The value has fallen tremendously and since he's moving back to the states in a few months he's trying to spend it all locally before he leaves.
He floated the idea of buying a bunch of PS5s and stuffing his suitcase with them to resell when he gets back to the US. This would work but they are bulky and would likely raise some eyebrows at customs. We're still looking for ideas on how to get money out without too much of a haircut.
I think you're onto it with electronics, but maybe smaller higher-value ones like iPhones would work better. Also, watch out for electronics which only have Japanese language options (or can't be changed without flashing the ROM) - i.e some cameras.