The primary difference is the shape of the hulls and the flexibility.
The long ships, being clinker built where the planks overlap, are very flexible where as the classic Mediterranean galley is built up of edge pinned planks which are not as flexible. Also the long ships had fairly low freeboard for their lengths unlike the more lofty trireme.
If you look at a cross section of a long ship compared to a trireme or any galley, even a sleek 18th century one, you will see that the hull is relatively lighter than the longship and much more prone to hogging. The Greeks and Romans needed to use long cables tensioned fore and aft to keep their galleys from sagging. The largest long ships may have done the same, we don't know for sure about that.
So what made the longship more "sea worthy"? In rough seas a ship has to be able to either resist bending in all directions OR it must be flexible enough to survive bending without failing. In the case of the longship, with its very flexible hull, it rode over the waves more nimbly. Sailors who have sailed reproductions have often been alarmed at the movements of the hulls in a sea way.
This flexibility was a severe liability if the vessel was used to ram anything however, which is why the galley is so stiff fore and aft. For the same length of hull a longship could survive sea conditions that would overwhelm and smash a galley.
Interestingly enough the trading ship versions of the longship, the Knarr, and Mediterranean vessels could safely navigate severe weather conditions so it isn't simply the construction technique.
F