Pruning hard will leave the hollow stems open to pests so it isn’t ideal but it can be done. Just try to remove growth at the ends of the vines. Here’s a link you might find helpful. https://www.hortmag.com/plants/fruits-veggies/can-i-prune-a-squash-vine