Yes, the high voltage will damage the UMC/HPWC circuitry if you boost before the EVSE.
The other issue that you have is that you're drawing a much higher current through the EVSE. To charge the car at 290V/40A after boost, the primary side of the transformer will be drawing 48A at 240V, and you're putting 48A through the EVSE -- your EVSE must be rated for that (the UMC isn't). This means you need a circuit sized appropriately (60A).
Note that the original (gen 1) chargers in Model S are labeled 85-265V, although we know they run them @ 277 in the older SC's.
This is a bad idea - even though the internals of the chargers may be rated higher, the warranty may not cover charging in this manner.