Ok, so it seems it is not a hardware issue. Because as you say all buttons are functioning separately.
Next step. Where are you saving your screenshots, to the phone memory, or SD card?
In Storage Sense, choose where to store new photos on your Phone or the SD card.
Maybe your memory is full, or there is a problem with writing to the SD card. Try change location of where your screenshots/photos are saved to.