Your mid-drive is probably hitting either a thermal limit or an amp limit - and the tricky part is that both can happen independently of battery charge. The motor controller doesn't care how many watts the battery *could* provide; it's designed to protect itself by cutting out when either the motor temperature spikes or the current draw gets too high. On steep climbs, you're usually hammering both at once.
Here's what folks often miss: a throttle cutoff doesn't always *feel* like overheating. Your motor might be cutting assistance because the controller detected high current draw, not because you can feel heat coming off anything. Sustained steep climbing with a mid-drive forces the motor to work at max torque, which draws serious amps through a narrow thermal window. If your controller's amp limit kicks in before actual motor temperature becomes a problem, you'll get that mid-climb dropout even though everything feels cool.
The diagnostic move is to try the same hill at a lower assist level or by pedaling more actively to spread the load over time. If you can make it up on eco mode without cutting out, that's your answer - you're hitting the amp limit. If it cuts even on lower assist, or if the motor gets noticeably hot to the touch, temperature throttling is your culprit. You might also check whether your motor's firmware can be updated; some manufacturers have adjusted their thermal strategies after release. If neither of those works, the controller itself could be failing, but temperature and amperage limits are way more common.