Can you preserve scroll position when scrolling vertically but not horizontally in figma?

If I understand your case correctly, then:

  1. Create a frame (container) of fixed width and height.
  2. Set it to horizontal scroll in the prototype settings.
  3. Create the required number of table rows.
  4. Wrap all table rows except the first row in a frame.
  5. Set this frame to vertical scroll.

Also, you can see a similar example in this post:

If you want to fix both row and column, then: