How hard would the technical problems be in real life?
None at all. Naval aircraft are already expected to operate off land bases, defend land targets, and attack them.
The Pacific War was almost entirely the responsibility of the Imperial Japanese Navy (IJN), the Imperial Japanese Army (IJA) was busy in China and had their own aircraft models. Most Japanese held island airbases were stocked with unmodified IJN aircraft. In the very late war, after the IJN fleet carriers had been sunk, some IJN aircraft were lightly modified to be optimized for use exclusively on land.
torpedo bombers would have to be retrofitted with high explosive bombs...
Japanese torpedo bombers already had the capability to drop bombs, so did everyone else, and were expected to attack ground targets and operate from land bases. Torpedo bombers, being large and able to carry heavy loads, were given many tasks. The Japanese B5N "Kate" torpedo bomber, and its successor the B6N "Jill" could carry a torpedo, various bomb loads, and depth charges. It could act as a torpedo bomber, or level bomber, or do anti-submarine work. Later models could carry radar to act as search and early warning pickets.
torpedo bombers' low flight levels might subject them to anti-aircraft fire
Torpedo bombers were already subjected to heavy AA fire as they flew very low, quite slow, and unnervingly steady to drop a torpedo against a ship. When used as bombers against land targets they had a much easier time being able to fly as high as they like.
Historical Examples
In 1938 the B5N participated in the Japanese war in China from both carriers and shore bases.
Half the torpedo bombers in the first wave at Pearl Harbor were armed with 800 kg armor piercing bombs to attack ships. The second wave was entirely bomb armed to attack hangers and grounded aircraft.
During the Battle of Midway, the Japanese used their B5N torpedo bombers as bombers to attack Midway island. Later, as the Japanese were preparing a follow up strike, US carriers appeared. They faced a dilemma: rearm their torpedo bombers with torpedoes or attack immediately with general purpose bombs. They decided to rearm with torpedoes. This delay cost them.
By late 1944 most of the IJN's fleet carriers were sunk. The remaining light carriers could not operate heavy torpedo bombers. Remaining B5Ns and B6N torpedo bombers were largely from land bases.