Lying flat on the floor and raising both legs together using a pelvic tilt rather than a hip swing keeps the lower abs, not the hip flexors, doing most of the lifting. The firm floor surface gives a stable reference point for keeping the lower back pressed down through the set.
Log your lying leg hip raise on floor sets in 1RM.fit and watch your estimated 1RM update automatically as you get stronger.