Excellent advice, thanks. I plan to upgrade the 100 amp subpanel to 200 amp, but keep the feed to the panel from the main at 100amp. As you state, this 200 amp subpanel will address the issue of 140 amps coming in (100/main, 40pv).
As far as the location of the 100 amp breaker on the main...