Let’s try this again using a different approach, one that specifically responds to question “… try and explain to me if the book’s solution is possible and correct…?” The following is presented for your consideration.
Fig 1 below describes an apparatus (whether or not it is practical is another question). The system is the gas and the resistor. The adiabatic cylinder walls and piston are the boundary. Everything else constitutes the surroundings. The piston supports a weight, which rests on top of the cylinder. All surfaces moving relative to one another are frictionless. A perfect seal is between the piston shaft and opening of the top of the cylinder. Atmospheric air surrounds the weight. Before the heater is turned on, the system is in thermal and mechanical equilibrium. Ideal gas behavior is assumed throughout the process.
Refer now to Fig 2. In order for PxV of the gas to be constant when the heater is turned on, an external agent is needed to apply an upward force to the weight that varies with the height of the piston as shown. Consequently, this is not a constant pressure process. Since the boundary is adiabatic, no heat crosses the boundary and Q=0 in the first law equation. The work done on the gas is electrical work that crosses the defined boundary. (Within the system there is heat transfer from the heater to the surrounding gas. See comments below). If you do the necessary integrations you’ll find the work done by the gas on the weight plus the work done by the external agent on the weight will by $mg \Delta h$ as you would expect.
With this arrangement it would be possible in theory to have a reversible isothermal process if it were not for the fixed electrical power source. Therefore, the process will necessarily be irreversible.
Initial conditions:
$$h = h_o$$
$$F_{gas} = mg$$
$$T = T_1$$
When the heater is initially switched on a differential amount of electrical work done is given by:
$$-I^2R dt$$
During that time the gas does a differential amount of boundary work given by:
$$+mg dh$$
In order for no change in internal energy:
$$I^2R dt = mg dh $$
Thus:
$$\frac{dh}{dt} = \frac{I^2R}{mg}$$
Therefore the book answer is the instantaneous velocity at the start of the process. However, the velocity will not be constant. In needs to increase linearly with height in order to accommodate the fixed rate of electrical work crossing the boundary. For example, when the volume doubles the velocity doubles. In order for the velocity to be constant, we would need an electrical power input that varies inversely with height (volume).
The following are additional comments regarding practicality, temperature, atmospheric air, and representation of the electrical energy input as either Q or W.
Practicality- Fig 1 is not intended to represent a practical apparatus for conducting the process. For example, the distribution of the resistance is limited to the initial boundary. Resistors don’t immediately reach max temperature upon switching on as they are made of material with finite specific heats. All contacting surfaces are subject to friction. The type of external agent that provides the height varying external force is not specified, etc., etc.
Temperature- Since this process is not quasi static there will be, as Chester Miller points out, spatial temperature variations throughout the gas during the process. However, if the internal energy does not change, the average translational kinetic energy of the gas molecules will remain the same. Problem is there is no way to measure it while the heater is on. In order to be able to make temperature measurements, thermal equilibrium is necessary. One approach is to cycle the heater on and off, with short on times and long off times sufficient for the system to reach thermal and mechanical equilibrium. At each equilibrium state the temperature can be measured and should theoretically be the same. In terms of a PV graph we would have a series of equilibrium points, with the process being undefined between points.
Atmospheric Air- For the apparatus shown, the weight is surrounded by atmospheric air. Consequently, it plays no role in the process (this is what I had in mind when I said it didn’t necessarily matter).
Electrical Energy Input as Either Q or W- In this example, the electrical input is considered work transfer (W) crossing the boundary, which is typical in treatments like this. In the presentation of the question and Chester Miller’s analysis, the electrical input is represented as Q. That necessitates a different boundary as shown in Fig 3, in which the heater becomes part of the surroundings. The net effect is, of course, the same.
Hope this helps.