Ibanez has made literally hundreds of different basses so just saying hey I need a screw really doesn't narrow it down. Also they don't have some unicorn magic screw sizes so there's easily hundreds if suitable replacements. Just trying to help…
Perhaps I should have done this in the first place: here's a photo of the relevant type of cover grabbed from the web:
Now could somebody with a bass with this type of cover and screw measuring equipment please tell me what the spec. of the screw is? Or, if the spec. of the battery box has changed over time, tell me that this has happened?