You asked

Which full frame pancake lens is smallest for a sony a7 iv?

The guide can't name the smallest one. Its pages give no lens dimensions or weights, and none of them labels a lens as a pancake. For the Sony a7 IV, the compact-looking full-frame primes in its lens list are the Sony FE 28mm f/2, the Sony FE 24mm f/2.8 G, and the Samyang AF 24mm f/2.8 FE. Their modest maximum apertures usually mean simpler, shorter optics, but check each lens page for its dimensions before you decide.

Each of these gives up low-light speed. A wider f/1.4 or f/1.8 prime would gather more light but is usually bigger. If you want the lightest kit, the full-frame body matters as much as the lens. The street guide makes the case for a small mirrorless body with a pancake prime, which gives most of the pocket-camera feel and leaves room to add other lenses later.

Pair whichever prime you choose with the a7 IV's mount, Sony E, and keep an eye on the a7 IV's full-frame framing, since a 24mm or 28mm lens will look wide on it.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.