Pain can be caused by a variety of things. Your technique may need adjustment (they way you are holding the bass, the angle of your wrist, etc), or you may be squeezing the neck way too tight, or you may have an actual physical problem that is causing the pain (in which event you'll need to see a physician).
Or, as stated ^^^^, stop playing for 8 hours straight ...

Take a break every hour or so until your chops/technique improve ......
