I wonder if you could get a useful system without using up the entire bed. In order to get "infinite" range while towing, you'd probably want at least a 100kW ICE in the back. A 100kW diesel generator is a beefy boy, those usually come on a two axle trailer. But maybe you could build something more compact with a performance motorcycle engine...
Also, can the cybertruck charge its main battery from the range extender? Or can it drive while the charging port is supplied with current? The entire idea kind of dies if the ICE can't charge the main battery, you really want that to buffer demand.