I often have static but some things that make it better are wool tights, a cotton full length closely fitted slip that is close fitting but just simple cotton, so not constricting, or a nylon half slip from M&S.
I haven’t tried the safety pin trick but will see if that works.